@model List<ToDoListWeb.ViewModels.MattersViewModel>
    @section head{
<link href="~/css/MatterThings/_matters.css" rel="stylesheet" />
    }
    @{
        ViewData["Title"] = "ShowAllMatters";
    }

    <div class="location-center">
        <div>
            <form class="float-left" action="/Matter/ShowSameDateMatters" id="postForm" method="post">
                <label>选定时间</label>
                <select name="year" id="year" form="postForm">
                    <option value="year_opt" disabled >年</option>
                </select>
                <select id="month" name="month" form="postForm">
                    <option value="month_opt" disabled >月</option>
                </select>
                <select id="day" name="day" form="postForm">
                    <option value="day_opt" disabled >日</option>
                </select>
                <input class="yes" type="submit" value="筛选事项" />
            </form>
        </div>
        <div class="float-left location-center">
            <ul class="roll-x-y float-left style-none">
                <li class="at-center-li"><b>完成事项</b></li>
                @foreach (var matter in Model)
                {
                    if (matter.IsFinished)
                    {
                        <li>
                            <a class="float-left" href="/Matter/ChangeIsFinished?inventoryId=@matter.InventoryId&matterId=@matter.MatterId">
                                <img src="~/images/已完成.png" />
                            </a>
                            <a class="float-left medium-blue" href="/Matter/CompileMatterView?matterId=@matter.MatterId">
                                <div title="@matter.MatterContent" class="float-left overflow-hidden content">@matter.MatterContent</div>
                                <div title="创建时间:@matter.CreatTime" class="float-left overflow-hidden creat-time">@matter.CreatTime</div>
                            </a>
                            <a href="/Matter/DeleteMatter?inventoryId=@matter.InventoryId&matterId=@matter.MatterId" onclick='return confirm("确认删除")'><img src="~/images/删除-叉.png" /></a>
                        </li>
                    }
                }
            </ul>
            <ul class="roll-x-y float-left style-none">
                <li class="at-center-li"><b>未完成事项</b></li>
                @foreach (var matter in Model)
                {
                    if (!matter.IsFinished)
                    {
                        <li>
                            <a class="float-left" href="/Matter/ChangeIsFinished?inventoryId=@matter.InventoryId&matterId=@matter.MatterId">
                                <img src="~/images/未完成1.png" />
                            </a>
                            <a class="float-left medium-blue" href="/Matter/CompileMatterView?matterId=@matter.MatterId">
                                <div title="@matter.MatterContent" class="float-left overflow-hidden content">@matter.MatterContent</div>
                                <div title="创建时间:@matter.CreatTime" class="float-left overflow-hidden creat-time">@matter.CreatTime</div>
                            </a>
                            <a href="/Matter/DeleteMatter?inventoryId=@matter.InventoryId&matterId=@matter.MatterId" onclick='return confirm("确认删除")'><img src="~/images/删除-叉.png" /></a>
                        </li>
                    }
                }
            </ul>
        </div>

    </div>
    <script src="~/js/matter.js" type="text/javascript"></script>
